package com.turing.post.datatranferpmbs.impl;

import javax.ejb.Local;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import com.turing.post.datatranferpmbs.util.MchBindingType;
import com.turing.post.datatranferpmbs.util.MchBindingTypeDao;

@Stateless(mappedName = "datatranferpmbs.impl.MchBindingTypeDaoImpl")
@Remote
@Local
public class MchBindingTypeDaoImpl implements MchBindingTypeDao {

	/**
	 * 实体管理器
	 */
	@PersistenceContext
	protected EntityManager _em;
	
	@Override
	public MchBindingType getMchBindingTypeByBindingTypeNo(String bindingTypeNo) {
		return _em.find(MchBindingType.class, bindingTypeNo);
	}

}
